<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="java.util.Date" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
	</head>
	<body>
		<%
			request.setAttribute("date",new Date());
		%>
		<!-- 设置日期格式 -->
		<fmt:formatDate value="${date }" pattern="yyyy-MM-dd HH-mm-ss"></fmt:formatDate>
		<hr>
		<fmt:formatNumber value="2354.2254" maxIntegerDigits="2" maxFractionDigits="3"></fmt:formatNumber>
	</body>
</html>